package com.markerhub.util;

import com.markerhub.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author cxz
 * @version 1.0
 */
public class ShiroUtils {
    public static AccountProfile  getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
